#include "Mystdio.h"
#include <unistd.h>
int main()
{
    _FILE *fp = _fopen("test.txt","a");
    if(fp == NULL) return 1;
    int cnt =10;
    while(cnt--){
    const char* msg = "hello world\n";
     _fwrite(fp,msg,strlen(msg));
     sleep(1);
    //fflush(fp);
    }
     _fclose(fp);

     return 0;
}
